import request from '@/utils/request'

// 查询所有客户信息列表
export function customerteamAll() {
  return request({
    url: '/team/customerteam/listAll',
    method: 'get',
  })
}

// 查询客户信息列表
export function listCustomerteam(query) {
  return request({
    url: '/team/customerteam/list',
    method: 'get',
    params: query
  })
}

// 查询客户信息详细
export function getCustomerteam(id) {
  return request({
    url: '/team/customerteam/' + id,
    method: 'get'
  })
}

// 新增客户信息
export function addCustomerteam(data) {
  return request({
    url: '/team/customerteam',
    method: 'post',
    data: data
  })
}

// 修改客户信息
export function updateCustomerteam(data) {
  return request({
    url: '/team/customerteam',
    method: 'put',
    data: data
  })
}
